import xadmin
from xadmin import views
from .models import TopicProfile, topic_comment_profile, topic_respect_profile


class topicprofileAdmin(object):
    # 显示的列
    list_display = ['topic_title', 'topic_label', 'published_time', 'userprofile_id']


class topic_comment_profileAdmin(object):
    # 显示的列
    list_display = ['userprofile_id', 'topic_id', 'topic_comment_content']


class topic_respect_profileAdmin(object):
    # 显示的列
    list_display = ['userprofile_id', 'topic_respect_profile_id', 'topic_respect_content', 'comment_userprofile_id']


xadmin.site.register(TopicProfile, topicprofileAdmin)
xadmin.site.register(topic_comment_profile, topic_comment_profileAdmin)
xadmin.site.register(topic_respect_profile, topic_respect_profileAdmin)